// 薪资应付账单
export const SalaryThead = [
  {
    title: '费用月份',
    key: 'salaryMonth',
    render: (h, params) => {
      let row = params.row
      let times = ''
      if (row.salaryMonth) {
        times = row.salaryMonth.slice(0, 7)
      }
      return h('span', times)
    },
    minWidth: 120
  },
  {
    title: '客户名称',
    key: 'customerName',
    minWidth: 120
  },
  {
    title: '工资发放日期',
    key: 'sendDate',
    minWidth: 120
  },
  {
    title: '工资应付',
    key: 'salaryPayable',
    minWidth: 120
  },
  {
    title: '个税应付',
    key: 'income',
    minWidth: 120
  },
  {
    title: '应收总计',
    key: 'billTotal',
    minWidth: 120
  },
  {
    title: '实到总计',
    key: 'receiveTotal',
    minWidth: 120
  },
  {
    title: '实付金额合计',
    key: 'payableTotal',
    minWidth: 120
  },
  {
    title: '付款银行',
    key: 'payBank',
    minWidth: 120
  },
  {
    title: '付款时间',
    key: 'payDate',
    minWidth: 120,
    render: (h, params) => {
      let row = params.row
      let times = ''
      if (row.payDate) {
        times = row.payDate.slice(0, 10).replace(/T/g, ' ')
      }
      return h('span', times)
    }
  },
  {
    title: '操作',
    key: 'action',
    slot: 'action',
    width: 180,
    fixed: 'right',
    align: 'center'
  }
]

// 薪资应付账单详情
export const SalaryDetailThead = [
  {
    title: '姓名',
    key: 'name',
    minWidth: 120
  },
  {
    title: '身份证号码',
    key: 'identityCardNO',
    minWidth: 180
  },
  {
    title: '开户行',
    key: 'bankName',
    minWidth: 120
  },
  {
    title: '卡号',
    key: 'bankAccountNo',
    minWidth: 180
  },
  {
    title: '应发工资总额',
    key: 'shouldSalaryTotal',
    minWidth: 120
  },
  {
    title: '社保扣除',
    key: 'socialSecurityDeduct',
    minWidth: 120
  },
  {
    title: '公积金扣除',
    key: 'providentFundDeduct',
    minWidth: 120
  },
  {
    title: '其他扣除',
    key: 'otherDeduct',
    minWidth: 120
  },
  {
    title: '个税扣除',
    key: 'incomeDeduct',
    minWidth: 120
  },
  {
    title: '手续费',
    key: 'serviceCharge',
    minWidth: 120
  },
  {
    title: '实发工资总额',
    key: 'realSalaryTotal',
    minWidth: 120
  }
]
